* {
    margin: 0;
    padding: 0;
}

ul,
li {
    list-style: none;
}

a{
    text-decoration: none;
}

// // 头部
.baseHeader {
    margin: auto;
    width: 1200px;

    .wrapper {
        width: 1200px;
        height: 161px;
        position: absolute;
        top: 0;

        .logo {
            float: left;
            margin: 50px 0 0 20px;
            height: 75px;

            a {
                color: #333;
                text-decoration: none;

                img {
                    float: left;
                    width: 75px;
                    height: 75px;
                }

                .right {
                    float: left;
                    margin: 8px 0 0 15px;
                    text-align: center;
                    color: #43200c;

                    p {
                        font-size: 28px;
                        font-weight: 600;
                        line-height: 40px;
                    }

                    span {
                        display: inline-block;
                        font-size: 12px;
                        line-height: 17px;
                        transform: scale(0.8);
                    }

                }
            }
        }

        .wrapper-search {
            float: left;
            margin: 50px 0 0 108px;
            width: 532px;
            height: 48px;
            position: relative;

            input {
                position: absolute;
                left: 47px;
                width: calc(100%);
                font-size: 16px;
                line-height: 43px;
                color: #43200c;
                border-radius: 34px;
            }

            button {
                cursor: pointer;
                position: absolute;
                right: -45px;
                width: 124px;
                font-size: 14px;
                font-weight: 500;
                line-height: 37px;
                text-align: center;
                color: #43200c;
                margin: 3px 0;
                background-color: #fee44e;
                border-radius: 34px;
            }
        }

        .advantage {
            float: right;
            margin: 43px 86px 0 0;
            font-size: 10px;

            li {
                float: left;
                position: relative;
                margin-right: 25px;
                width: 44px;
                height: 60px;
                text-align: center;

                img {
                    width: 40px;
                    height: 40px;
                }
            }

            span {
                position: absolute;
                bottom: 0;
                left: 50%;
                font-size: 12px;
                white-space: nowrap;
                transform: translateX(-50%);
            }
        }
    }
}

// // 导航
.nav {
    margin-top: 160px;
    width: 100%;

    .normal {
        margin: 0 auto;
        width: 100%;
        height: 46px;
        color: #fff;
        background-color: #43240c;

        ul {
            margin: 0 auto;
            width: 1200px;
            height: 46px;

            li {
                cursor: pointer;
                float: left;
                width: 166px;
                font-size: 16px;
                font-weight: 500;
                text-align: center;
                line-height: 47px;
                background-color: #fee44e;
            }
        }
    }
}

// 商品详情左边放大镜
section {
    position: relative;

    // 放大镜
    .glass {
        position: absolute;
        left: 640px;
        width: 400px;
        height: 400px;
        border: 1px solid red;
        overflow: hidden;
        display: none;
        left: 520px;
        z-index: 2;

        img {
            position: absolute;
        }
    }

    .wraper {
        width: 1200px;
        margin: auto;
        display: flex;

    }

    .g-left {
        width: 350px;

        .m-show {
            width: 350px;
            position: relative;
            margin-bottom: 10px;

            img {
                width: 350px;
                height: 350px;
            }
        }

        .mask {
            position: absolute;
            top: 0;
            left: 0;
            width: 200px;
            height: 200px;
            background-color: rgba(255, 255, 0, .4);
            display: none;
            pointer-events: none;
        }
    }

    .m-choose {
        display: flex;
        justify-content: space-between;

        li {
            cursor: pointer;
        }
    }
}
//商品描述中部文字
.g-container {
    width: 360px;
    height: 300px;
    position: relative;
    left: 20px;

    .content-font {
        height: 100px;
        width: 490px;
        background-color: #f5f5f5;
        position: relative;
        padding: 20px;

        .originPrice {
            text-decoration: line-through;
            color: rgb(175, 171, 171);
            font-size: 16px;

        }

        .price {
            position: absolute;
            top: 55px;
            left: 20px;
            color: red;
            font-size: 30px;

        }

        .couponValue {
            position: absolute;
            left: 264px;
            top: 64px;
            border: 1px solid red;
            color: red;
            background-color: rgb(253, 241, 241);

        }

        .goodRatePercentage {
            font-size: 16px;
            position: absolu te;
            color: darkgrey;
            right: 15px;
            top: 65px;

        }
    }




    p {
        color: crimson;
    }

    h2 {
        width: 500px;
        font-size: 22px;
        line-height: 35px;
    }

    .g-container-button {
        width: 400px;
        height: 197px;
        position: absolute;
        top: 313px;
        left: 71px;
        display: flex;
        justify-content: space-between;

        .cart-add,
        .cart-look {
            font-size: 20px;
            color: white;
            width: 180px;
            height: 50px;
            background-color: #fa585a;
            border-radius: 10px;
            border: none;
        }
    }
}

// 右边商家信息
.glass-right {
    right: -170px;
    width: 280px;
    height: 423px;
    position: relative;
    text-align: center;
    border: #fee44e 1px solid;

    p {
        font-size: 16px;
        position: relative;
        top: 82px;
    }

    h2 {
        width: 200px;
        font-size: 22px;
        line-height: 35px;
        position: relative;
        top: 60px;
        left: 40px;
        

    }

    img {
        position: relative;
        top: 70px;
        width: 150px;
        height: 150px;
    }
}

// 下方图片详情
.detail {
    background-color: #fff;
    width: 1200px;
    position: absolute;
    top: 433px;
    left: -54px;
    overflow: hidden;

    .imgs {
        font-size: 0;
        width: 800px;
        margin: 83px 285px 6px 215px;

        img {
            width: 100%;
        }
    }

}

// 底部
footer {
    width: 100%;
    margin: 100px auto;
    background-color: #484848;
    position: absolute;
    bottom: -4800px;

    img {
        width: 1200px;
        height: 280px;
        position: relative;
        left: 180px;
        top: 41px;
    }
}

// 回到顶部
.return-top>img {
    position: fixed;
    width: 70px;
    height: 70px;
    top: 300px;
    left: 1400px;
    // display:none
}

.onreturn-top {
    display: block;
}